#ifndef PID_H
#define PID_H

typedef struct
{
	float dState;
	float iState;
	float iMax, iMin;

	float pGain;
	float iGain;
	float dGain;
}SPid;

float UpdatePID(SPid*pid, float err, float position);

#endif
